import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:pornhub_app/utils/color.dart';

import '../../../utils/extension.dart';

class AiCostTips extends StatelessWidget {
  final double gold;
  final int? freeCount;

  const AiCostTips({super.key, required this.gold, this.freeCount});

  @override
  Widget build(BuildContext context) {
    final descStyle = TextStyle(
      fontSize: 12.w,
      fontWeight: FontWeight.w600,
      color: COLOR.white.withValues(alpha: 0.7),
    );
    final numStyle = TextStyle(
      fontSize: 18.w,
      fontWeight: FontWeight.w600,
      color: COLOR.white,
    );
    return Row(
      children: [
        Text('金币价:', style: descStyle),
        3.horizontalSpace,
        Text(gold.toStringAsShort(), style: numStyle),
        10.horizontalSpace,
        if (freeCount != null) ...[
          Text('免费次数:', style: descStyle),
          3.horizontalSpace,
          Text('$freeCount', style: numStyle)
        ]
      ],
    );
  }
}
